package com.it.bannner

import android.content.Intent
import android.os.Bundle
import android.util.DisplayMetrics
import androidx.appcompat.app.AppCompatActivity
import com.it.bannner.log.LogWriter


class SplashActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val outMetrics = DisplayMetrics()
        windowManager.defaultDisplay.getRealMetrics(outMetrics)
        val widthPixel = outMetrics.widthPixels
        val heightPixel = outMetrics.heightPixels
        LogWriter.e("屏幕信息： widthPixel = $widthPixel,heightPixel = $heightPixel")

        //越南 横屏
        //startActivity(Intent(this, MainActivity::class.java))

        //越南 竖屏
       // startActivity(Intent(this,MainLanActivity::class.java))
        //越南 大屏
       // startActivity(Intent(this,MainLanBigActivity::class.java))


        //柬埔寨 横屏
         startActivity(Intent(this,MainBlueActivity::class.java))


        finish()
    }
}